package cn.wolfcode.domain;

import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Getter
@Setter
public class Notice {
    /** */
    private Long id;

    /** */
    private String title;

    /** */
    private Employee employee;

    /** */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date creatTime;

    /** */
    private Integer lv;

    /** */
    private Boolean read;

    /** */
    private String message;

    /** */
    private Boolean status;

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}